package com.cloudkinto.service.orderwork;

import com.cloudkinto.entity.OrderWorkDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.orderwork.vo.OrderWordDetailRes;
import com.cloudkinto.service.orderwork.vo.OrderWorkAddReq;
import com.cloudkinto.service.orderwork.vo.OrderWorkSetFeeReq;
import com.cloudkinto.service.orderwork.vo.OrderWorkUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author zhangyy
 * @since 2020-06-18
 */
public interface OrderWorkService extends IService<OrderWorkDo> {

    SingleResult addInit(Long userId , Long companyId);

    OrderWorkDo add(OrderWorkAddReq req, Long userId);

    void setFee(OrderWorkSetFeeReq req,Long userId);

    SingleResult setFeeInit(Long id);

    SingleResult updateInit(Long id, Long currentUserId, Long companyId);

    OrderWorkUpdateReq update(OrderWorkUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    OrderWordDetailRes detail(Long id);

    SingleResult pageInit();

    PageResult getListPage(Map<String, String> map);

    SingleResult updateStatus(Long id, String status, String content, Long currentUserId, Long companyId);

    SingleResult updateStatusInit(Long currentUserId, Long companyId,Long id);

    String exportExcel(List<Long> ids, String fileName);
}
